home *** CD-ROM | disk | FTP | other *** search
/ HyperLib 1997 Winter - Disc 1 / HYPERLIB-1997-Winter-CD1.ISO.7z / HYPERLIB-1997-Winter-CD1.ISO / オンラインウェア / UTIL / Msh 1.0.0.sit / Msh 1.0.0 f / Manual / MAN2C.HLP < prev    next >
Text File  |  1996-11-14  |  12KB  |  567 lines

  1. /***Intro***/
  2. Intro(2c)
  3.  
  4. 【名前】
  5.     Intro - Toolbox: QuickDrawカラー,その他(man2c.hlp)
  6.  
  7. 【概要】
  8.  
  9. 【Inside Macintosh】
  10.     Palette Manager
  11.         VI-20(Part 2)
  12.  
  13.     Color Picker Package
  14.         VI-19(Part 2)
  15.  
  16.     Picture Utilities Package
  17.         VI-18(Part 2)
  18.  
  19.     廃止
  20.         V-151    Palette Manager
  21.         V-171    Color Picker Package
  22.  
  23. 【関連項目】
  24.     ColorManager(2q)
  25.  
  26. 【ヘッダー】
  27.     Palettes.h
  28.     Picker.h
  29.     PictUtilities.h / PictUtil.h
  30.  
  31.     Graf3D.h    ??
  32.  
  33. 【残り】
  34.     2D / 3D
  35. /***InitPalettes***/ PMgrVersion PaletteManager
  36. InitPalettes(2c)
  37.  
  38. 【名前】
  39.     InitPalettes -
  40.     PMgrVersion  -
  41.  
  42. 【書式】
  43.     ■InitPalettes    VI-20-18
  44.     ■PMgrVersion    VI-20-18
  45.  
  46.     void    InitPalettes(void);
  47.  
  48.     short    PMgrVersion(void);
  49. /***NewPalette***/ GetNewPalette DisposePalette ColorInfo Palette PalettePtr PaletteHandle PaletteManager
  50. NewPalette(2c)
  51.  
  52. 【名前】
  53.     NewPalette     -
  54.     GetNewPalette  -
  55.     DisposePalette -
  56.     ColorInfo      - カラー情報 data type
  57.     Palette        - パレット data type
  58.  
  59. 【書式】
  60.     ■NewPalette        VI-20-19
  61.     ■GetNewPalette        VI-20-19
  62.     ■DisposePalette    VI-20-19
  63.  
  64.     PaletteHandle    NewPalette(short entries, CTabHandle srcColors,
  65.             short srcUsage, short srcTolerance);
  66.  
  67.     PaletteHandle    GetNewPalette(short PaletteID);
  68.  
  69.     void    DisposePalette(PaletteHandle srcPalette);
  70.  
  71.     ■ColorInfo    VI-20-4
  72.       ColorInfo
  73.         RGBColor ciRGB;
  74.         short    ciUsage;
  75.         short    ciTolerance;
  76.         short    ciDataFields[3];
  77.  
  78.     ■Palette    VI-20-4
  79.       Palette
  80.         short    pmEntries;
  81.         short    pmDataFields[7];
  82.         ColorInfo pmInfo[1];
  83.  
  84.       PalettePtr    Palette *
  85.       PaletteHandle    Palette **
  86. /***ActivatePalette***/ GetPalette SetPalette NSetPalette SetPaletteUpdates GetPaletteUpdates PaletteManager
  87. ActivatePalette(2c)
  88.  
  89. 【名前】
  90.     ActivatePalette   - 
  91.     GetPalette        -
  92.     SetPalette        -
  93.     NSetPalette       -
  94.     SetPaletteUpdates -
  95.     GetPaletteUpdates -
  96.  
  97. 【書式】
  98.     ■ActivatePalette    VI-20-20
  99.     ■GetPalette        VI-20-20
  100.     ■SetPalette        VI-20-20
  101.     ■NSetPalette        VI-20-20
  102.     ■SetPaletteUpdates    VI-20-21
  103.     ■GetPaletteUpdates    VI-20-21
  104.  
  105.     void    ActivatePalette(WindowPtr srcWindow);
  106.  
  107.     PaletteHandle    GetPalette(WindowPtr srcWindow);
  108.  
  109.     void    SetPalette(WindowPtr dstWindow, PaletteHandle srcPalette,
  110.                         Boolean cUpdates);
  111.  
  112.     void    NSetPalette(WindowPtr dstWindow, PaletteHandle srcPalette,
  113.                         short nCUpdates);
  114.             pmNoUpdates = 0x8000
  115.             pmBkUpdates = 0xA000
  116.             pmFgUpdates = 0xC000
  117.             pmAllUpdates = 0xE000
  118.  
  119.     void    SetPaletteUpdates(PaletteHandle p, short updates);
  120.  
  121.     short    GetPaletteUpdates(PaletteHandle p);
  122. /***PmForeColor***/ PmBackColor SaveFore SaveBack RestoreFore RestoreBack PaletteManager
  123. PmForeColor(2c)
  124.  
  125. 【名前】
  126.     PmForeColor - フォアカラーに指定パレット番号の色を設定
  127.     PmBackColor - バックカラーに指定パレット番号の色を設定
  128.     SaveFore    -
  129.     SaveBack    -
  130.     RestoreFore -
  131.     RestoreBack -
  132.  
  133. 【書式】
  134.     ■PmForeColor    VI-20-21
  135.     ■PmBackColor    VI-20-22
  136.     ■SaveFore, SaveBack, RestoreFore, RestoreBack    VI-20-22
  137.  
  138.     void    PmForeColor(short dstEntry);
  139.     void    PmBackColor(short dstEntry);
  140.  
  141.     void    SaveFore(ColorSpec *c);
  142.     void    SaveBack(ColorSpec *c);
  143.  
  144.     void    RestoreFore(const ColorSpec *c);
  145.     void    RestoreBack(const ColorSpec *c);
  146. /***AnimateEntry***/ AnimatePalette PaletteManager
  147. AnimateEntry(2c)
  148.  
  149. 【名前】
  150.     AnimateEntry   -
  151.     AnimatePalette -
  152.  
  153. 【書式】
  154.     ■AnimateEntry        VI-20-23
  155.     ■AnimatePalette    VI-20-23
  156.  
  157.     void    AnimateEntry(WindowPtr dstWindow, short dstEntry,
  158.             const RGBColor *srcRGB);
  159.  
  160.     void    AnimatePalette(WindowPtr dstWindow, CTabHandle srcCTab,
  161.             short srcIndex, short dstEntry, short dstLength);
  162. /***GetEntryColor***/ SetEntryColor GetEntryUsage SetEntryUsage Entry2Index PaletteManager
  163. GetEntryColor(2c)
  164.  
  165. 【名前】
  166.     GetEntryColor -
  167.     SetEntryColor -
  168.     GetEntryUsage -
  169.     SetEntryUsage -
  170.     Entry2Index   -
  171.  
  172. 【書式】
  173.     ■GetEntryColor    VI-20-25
  174.     ■SetEntryColor    VI-20-25
  175.     ■GetEntryUsage    VI-20-25
  176.     ■SetEntryUsage    VI-20-25
  177.     ■Entry2Index    VI-20-25
  178.  
  179.     void    GetEntryColor(PaletteHandle srcPalette, short srcEntry,
  180.                     RGBColor *dstRGB);
  181.     void    SetEntryColor(PaletteHandle dstPalette, short dstEntry,
  182.                     const RGBColor *srcRGB);
  183.  
  184.     void    GetEntryUsage(PaletteHandle srcPalette, short srcEntry,
  185.                     short *dstUsage, short *dstTolerance);
  186.     void    SetEntryUsage(PaletteHandle dstPalette, short dstEntry,
  187.                     short srcUsage, short srcTolerance);
  188.  
  189.         カラーの用法カテゴリ(詳しい説明 VI-20-5, 8)
  190.           基本
  191.             pmCourteous    現在利用できる色のいちばん近い色にする
  192.                     (Color Manager が判断する)
  193.             pmTolerant    許容量を指定する
  194.             pmAnimated    カラーを占有する
  195.  
  196.           補助
  197.             pmExplicit    現デバイスのカラーテーブルに指定イン
  198.                     デックスをおく ??
  199.  
  200.             pmWhite = 0x0010
  201.             pmBlack = 0x0020
  202.  
  203.             pmInhibitG2 = 0x0100
  204.             pmInhibitC2 = 0x0200
  205.             pmInhibitG4 = 0x0400
  206.             pmInhibitC4 = 0x0800
  207.             pmInhibitG8 = 0x1000
  208.             pmInhibitC8 = 0x2000
  209.  
  210.         トレラントカラーの許容量
  211.             0x0000    完全一致
  212.             0x0???    Apple でリザーブ
  213.             0x5000    通常の指定
  214.  
  215.     long    Entry2Index(short entry);
  216. /***CopyPalette***/ ResizePalette RestoreDeviceClut CTab2Palette Palette2CTab PaletteManager
  217. CopyPalette(2c)
  218.  
  219. 【名前】
  220.      CopyPalette       -
  221.     ResizePalette     -
  222.     RestoreDeviceClut -
  223.     CTab2Palette      -
  224.     Palette2CTab      -
  225.  
  226. 【書式】
  227.     ■CopyPalette        VI-20-23
  228.     ■ResizePalette        VI-20-24
  229.     ■RestoreDeviceClut    VI-20-24
  230.     ■CTab2Palette        VI-20-24
  231.     ■Palette2CTab        VI-20-24
  232.  
  233.     void    CopyPalette(PaletteHandle srcPalette, PaletteHandle dstPalette,
  234.             short srcEntry, short dstEntry, short dstLength);
  235.  
  236.     void    ResizePalette(PaletteHandle p, short size);
  237.  
  238.     void    RestoreDeviceClut(GDHandle gd);
  239.  
  240.     void    CTab2Palette(CTabHandle srcCTab, PaletteHandle dstPalette,
  241.             short srcUsage, short srcTolerance);
  242.  
  243.     void    Palette2CTab(PaletteHandle srcPalette, CTabHandle dstCTab);
  244. #
  245. #
  246. #
  247. /***CMY2RGB***/ RGB2CMY HSL2RGB RGB2HSL HSV2RGB RGB2HSV HSVColor HSLColor CMYColor Fix2SmallFract SmallFract2Fix SmallFract ColorPicker
  248. CMY2RGB(2c)
  249.  
  250. 【名前】
  251.     RGB2CMY        -
  252.     HSL2RGB        -
  253.     RGB2HSL        -
  254.     HSV2RGB        -
  255.     RGB2HSV        -
  256.     Fix2SmallFract -
  257.     SmallFract2Fix -
  258.     SmallFract     - data type
  259.     CMYColor       - CMY カラー data type
  260.     HSLColor       - HSL カラー data type
  261.     HSVColor       - HSV カラー data type
  262.  
  263. 【書式】
  264.     ■CMY2RGB        VI-19-10
  265.     ■RGB2CMY        VI-19-10
  266.     ■HSL2RGB        VI-19-10
  267.     ■RGB2HSL        VI-19-10
  268.     ■HSV2RGB        VI-19-10
  269.     ■RGB2HSV        VI-19-11
  270.     ■Fix2SmallFract    VI-19-11
  271.     ■SmallFract2Fix    VI-19-11
  272.  
  273.     void    CMY2RGB(const CMYColor *cColor, RGBColor *rColor);
  274.     void    RGB2CMY(const RGBColor *rColor, CMYColor *cColor);
  275.     void    HSL2RGB(const HSLColor *hColor, RGBColor *rColor);
  276.     void    RGB2HSL(const RGBColor *rColor, HSLColor *hColor);
  277.     void    HSV2RGB(const HSVColor *hColor, RGBColor *rColor);
  278.     void    RGB2HSV(const RGBColor *rColor, HSVColor *hColor);
  279.  
  280.     SmallFract    Fix2SmallFract(Fixed f);
  281.     Fixed        SmallFract2Fix(SmallFract s);
  282.  
  283.     ■SmallFract    VI-19-9
  284.       SmallFract    ushort
  285.  
  286.     ■CMYColor    VI-19-6
  287.       CMYColor
  288.         SmallFract cyan;
  289.         SmallFract magenta;
  290.         SmallFract yellow;
  291.  
  292.     ■HSLColor    VI-19-7
  293.       HSLColor
  294.         SmallFract hue;
  295.         SmallFract saturation;
  296.         SmallFract lightness;
  297.         SmallFract cyan;
  298.         SmallFract magenta;
  299.         SmallFract yellow;
  300.  
  301.     ■HSVColor    VI-19-8
  302.       HSVColor
  303.         SmallFract hue;
  304.         SmallFract saturation;
  305.         SmallFract value;
  306. /***GetColor***/ ColorPicker
  307. GetColor(2c)
  308.  
  309. 【名前】
  310.     GetColor - 標準ダイアログによる色選択
  311.  
  312. 【書式】
  313.     ■GetColor    VI-19-10
  314.  
  315.     #include <Picker.h>
  316.     Boolean    GetColor(Point where, ConstStr255Param prompt,
  317.             const RGBColor *inColor, RGBColor *outColor);
  318. #
  319. #
  320. #
  321. /***PictureUtilities***/ GetPictInfo GetPixMapInfo NewPictInfo RecordPictInfo RecordPixMapInfo RetrievePictInfo DisposPictInfo PictInfo PictInfoPtr PictInfoHandle CommentSpec CommentSpecPtr CommentSpecHandle FontSpec FontSpecPtr FontSpecHandle PictInfoID
  322. PictureUtilities(2c)        Picture Utilities Package
  323.  
  324. 【名前】
  325.     PictureUtilities - Picture Utilities Package
  326.     GetPixMapInfo    - PixMap を調べる
  327.     GetPictInfo      - ピクチャーを調べる
  328.     NewPictInfo      -
  329.     RecordPictInfo   -
  330.     RecordPixMapInfo -
  331.     RetrievePictInfo -
  332.     DisposPictInfo   -
  333.     PictInfo         - data type (PICT情報)
  334.     CommentSpec      - data type
  335.     FontSpec         - data type
  336.  
  337. 【書式】
  338.     ■PictureUtilities    VI-18-1 (Part 2)
  339.  
  340.     #include <QDOffscreen.h>
  341.     #include <PictUtil.h>
  342.  
  343.     OSErr    GetPixMapInfo(PixMapHandle thePixMapHandle,
  344.             PictInfo *thePictInfo, short verb,
  345.             short colorsRequested, short colorPickMethod,
  346.             short version);
  347.  
  348.     OSErr    GetPictInfo(PicHandle thePictHandle, PictInfo *thePictInfo,
  349.             short verb, short colorsRequested,
  350.             short colorPickMethod, short version);
  351.  
  352.     OSErr    NewPictInfo(PictInfoID *thePictInfoID, short verb,
  353.             short colorsRequested, short colorPickMethod,
  354.             short version);
  355.  
  356.     OSErr    RecordPictInfo(PictInfoID thePictInfoID,
  357.             PicHandle thePictHandle);
  358.  
  359.     OSErr    RecordPixMapInfo(PictInfoID thePictInfoID,
  360.             PixMapHandle thePixMapHandle);
  361.  
  362.     OSErr    RetrievePictInfo(PictInfoID thePictInfoID,
  363.             PictInfo *thePictInfo, short colorsRequested);
  364.  
  365.     OSErr    DisposPictInfo(PictInfoID thePictInfoID);
  366.  
  367.  
  368.     ■PictInfo    VI-18-5
  369.  
  370.       PictInfo
  371.         short        version;
  372.         long        uniqueColors;
  373.         PaletteHandle    thePalette;
  374.         CTabHandle    theColorTable;
  375.         Fixed        hRes;
  376.         Fixed        vRes;
  377.         short        depth;
  378.         Rect        sourceRect;
  379.         long        textCount;
  380.         long        lineCount;
  381.         long        rectCount;
  382.         long        rRectCount;
  383.         long        ovalCount;
  384.         long        arcCount;
  385.         long        polyCount;
  386.         long        regionCount;
  387.         long        bitMapCount;
  388.         long        pixMapCount;
  389.         long        commentCount;
  390.         long        uniqueComments;
  391.         CommentSpecHandle    commentHandle;
  392.         long        uniqueFonts;
  393.         FontSpecHandle    fontHandle;
  394.         Handle        fontNamesHandle;
  395.         long        reserved1;
  396.         long        reserved2;
  397.  
  398.       PictInfoPtr        PictInfo *
  399.       PictInfoHandle    PictInfo **
  400.  
  401.     ■CommentSpec    VI-18-8
  402.       CommentSpec
  403.         short    count;
  404.         short    ID;
  405.  
  406.       CommentSpecPtr    CommentSpec *
  407.       CommentSpecHandle    CommentSpec **
  408.  
  409.     ■FontSpec    VI-18-8
  410.  
  411.       FontSpec
  412.         short    pictFontID;
  413.         short    sysFontID;
  414.         long    size[4];
  415.         short    style;
  416.         long    nameOffset;
  417.  
  418.       FontSpecPtr        FontSpec *
  419.       FontSpecHandle    FontSpec **
  420.  
  421.     ■PictInfoID    VI-18-?
  422.       PictInfoID    long
  423. #
  424. #
  425. #
  426. /***InitGrf3d***/ Open3DPort SetPort3D GetPort3D
  427. InitGrf3d(2c)
  428.  
  429. 【名前】
  430.     InitGrf3d  -
  431.     Open3DPort -
  432.     SetPort3D  -
  433.     GetPort3D  -
  434.  
  435. 【書式】
  436.     void    InitGrf3d(Port3DHandle port);
  437.  
  438.     void    Open3DPort(Port3DPtr port);
  439.  
  440.     void    SetPort3D(Port3DPtr port);
  441.  
  442.     void    GetPort3D(Port3DPtr *port);
  443. /***MoveTo2D***/ MoveTo3D LineTo2D Move2D Move3D Line2D Line3D LineTo3D
  444. MoveTo2D(2c)
  445.  
  446. 【名前】
  447.     MoveTo2D -
  448.     MoveTo3D -
  449.     LineTo2D -
  450.     Move2D   -
  451.     Move3D   -
  452.     Line2D   -
  453.     Line3D   -
  454.     LineTo3D -
  455.  
  456. 【書式】
  457.     void    MoveTo2D(Fixed x, Fixed y);
  458.     void    MoveTo3D(Fixed x, Fixed y, Fixed z);
  459.     void    LineTo2D(Fixed x, Fixed y);
  460.     void    Move2D  (Fixed dx, Fixed dy);
  461.     void    Move3D  (Fixed dx, Fixed dy, Fixed dz);
  462.     void    Line2D  (Fixed dx, Fixed dy);
  463.     void    Line3D  (Fixed dx, Fixed dy, Fixed dz);
  464.     void    LineTo3D(Fixed x, Fixed y, Fixed z);
  465. /***ViewPort***/ LookAt ViewAngle Identity Scale Translate
  466. ViewPort(2c)
  467.  
  468. 【名前】
  469.     ViewPort  -
  470.     LookAt    -
  471.     ViewAngle -
  472.     Identity  -
  473.     Scale     -
  474.     Translate -
  475.  
  476. 【書式】
  477.     void    ViewPort(const Rect *r);
  478.  
  479.     void    LookAt(Fixed left, Fixed top, Fixed right, Fixed bottom);
  480.  
  481.     void    ViewAngle(Fixed angle);
  482.  
  483.     void    Identity(void);
  484.  
  485.     void    Scale(Fixed xFactor, Fixed yFactor, Fixed zFactor);
  486.  
  487.     void    Translate(Fixed dx, Fixed dy, Fixed dz);
  488. /***Pitch***/ Yaw Roll Skew Transform
  489. Pitch(2c)
  490.  
  491. 【名前】
  492.     Pitch     -
  493.     Yaw       -
  494.     Roll      -
  495.     Skew      -
  496.     Transform -
  497.  
  498. 【書式】
  499.     void    Pitch(Fixed xAngle);
  500.     void    Yaw  (Fixed yAngle);
  501.     void    Roll (Fixed zAngle);
  502.     void    Skew (Fixed zAngle);
  503.  
  504.     void    Transform(const Point3D *src, Point3D *dst);
  505. /***Clip3D***/ SetPt3D SetPt2D
  506. Clip3D(2c)
  507.  
  508. 【名前】
  509.     Clip3D  -
  510.     SetPt3D -
  511.     SetPt2D -
  512.  
  513. 【書式】
  514.     short    Clip3D(const Point3D *src1, const Point3D *src2, Point *dst1,
  515.             Point *dst2);
  516.  
  517.     void    SetPt3D(Point3D *pt3D, Fixed x, Fixed y, Fixed z);
  518.  
  519.     void    SetPt2D(Point2D *pt2D, Fixed x, Fixed y);
  520. /***Point3D***/ Point2D Port3D Port3DPtr Port3DHandle XfMatrix
  521. Point3D(2c)
  522.  
  523. 【名前】
  524.     Point3D -
  525.     Point2D -
  526.     Port3D   -
  527.     XfMatrix -
  528.  
  529. 【形式】
  530.     ■Point3D    ??
  531.       Point3D
  532.         Fixed    x;
  533.         Fixed    y;
  534.         Fixed    z;
  535.  
  536.     ■Point2D    ??
  537.       Point2D
  538.         Fixed    x;
  539.         Fixed    y;
  540.  
  541.     ■Port3D    ??
  542.       Port3D
  543.         GrafPtr    grPort;
  544.         Rect    viewRect;
  545.         Fixed    xLeft;
  546.         Fixed    yTop;
  547.         Fixed    xRight;
  548.         Fixed    yBottom;
  549.         Point3D    pen;
  550.         Point3D    penPrime;
  551.         Point3D    eye;
  552.         Fixed    hSize;
  553.         Fixed    vSize;
  554.         Fixed    hCenter;
  555.         Fixed    vCenter;
  556.         Fixed    xCotan;
  557.         Fixed    yCotan;
  558.         char    filler;
  559.         char    ident;
  560.         XfMatrix xForm;
  561.  
  562.       Port3DPtr    Port3D *
  563.       Port3DHandle    Port3D **
  564.  
  565.     ■XfMatrix    ??
  566.       XfMatrix    Fixed    [4][4]
  567.